home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr53
/
pctv4n_1.zip
/
DBDESCNW.C
< prev
next >
Wrap
Text File
|
1993-06-10
|
839b
|
38 lines
/**************************************************
* FUNCTION NAME: dbDescribe for NETWARE XQL/SQL
*
* SYNOPSIS:
* access .ddf to retrieve list of fields
* via XQLDescribe
***************************************************/
int dbDescribe(int ColumnPos,
struct ColumnDesc *col,
REQUEST rq)
{
int XQLStatus;
col->namelen = NAMELENGTH;
col->data_type = 0;
col->size = 0;
col->dec_places = 0;
col->display_len = 0;
strcpy(col->fldname," ");
XQLStatus = XQLDescribe (rq->CursorID,
ColumnPos + 1,
&col->data_type,
&col->size,
&col->dec_places,
&col->display_len,
&col->namelen,
col->fldname);
if (XQLStatus)
return XQLStatus;
else
return SQL_SUCCESS;
}